/**
  **********************************************************************************
  * @file   ：Service_Communication.h
  * @brief  ：Header of Service_Communication.cpp
  **********************************************************************************
**/
#ifndef  _SERVICE_COMMUNICATE_H_
#define  _SERVICE_COMMUNICATE_H_

#include "System_Config.h"

#ifdef  __cplusplus
extern "C"{
#endif

/*------------------------------Function prototypes ---------------------------*/
void Service_Communication_Init(void);
	
void User_CAN1_RxCpltCallback(CAN_RxBuffer *CAN_RxMessage);
void User_CAN2_RxCpltCallback(CAN_RxBuffer *CAN_RxMessage);

/* CAN message data type(Communication Object/标准数据帧) */
typedef struct
{
    uint16_t ID;
    uint8_t DLC;
    uint8_t Data[8];
} COB_TypeDef;

typedef struct
{
    uint8_t port_num;
    int16_t len;
    void *address;
} USART_COB;

#ifdef  __cplusplus
}
#endif
#endif  

/************************* COPYRIGHT SCUT-ROBOTLAB *****END OF FILE****************/

